package readfile;
import java.io.IOException;
import java.io.FileReader;
import java.io.BufferedReader;

public class finaltry {
	private String path;
	public finaltry (String file_path){
		path=file_path;
		}
	public char[][] OpenFile() throws IOException{
		FileReader fr=new FileReader(path);
		BufferedReader textReader=new BufferedReader(fr);
		int numberOfrow = 3;/*I imagine that we know the size of array*/
		int numberofcolumn=3;
		char[ ][] textData = new char[numberOfrow][numberofcolumn];
		int i=0;
		int j=0;

		for (i=0; i < numberofcolumn; i++){
		for (j=0;j<numberOfrow;j++){
		System.out.print(textData[ i ][j] =(char)  textReader.read());
		

		}
		System.out.println();}
		
		textReader.close( 
				);
		return textData;
	}
}
